/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package property;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;
/**
 *
 * @author UserXP
 */
public class frameUtility {
    public static void setDitengah(JFrame fr) {
	    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
	    int posx = (int) ((d.width - fr.getWidth()) / 2);
	    int posy = (int) ((d.height - fr.getHeight()) / 2);
	    fr.setLocation(posx, posy);
	 }

}
